package com.example.study.testSwap;

import java.util.ArrayList;
import java.util.List;

public class main {
    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println(a+"========="+b);
        swap(a,b);
        System.out.println(a+"========="+b);

    }
    public static void swap(int a,int b){
       int temp;
       temp =a;
       a=b;
       b=temp;
    }
}
